package com.qfedu.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * (Permission)实体类
 *
 * @author makejava
 * @since 2022-09-30 00:43:04
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "permission")
public class Permission implements Serializable {
    private static final long serialVersionUID = -76118505446395150L;

    //设置为主键
    @Id
    //设置主键自增长
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    //将属性名与字段名进行映射
    @Column(name = "id")
    private Integer id;
    @Column(name = "permission_name")
    private String permissionName;

}

